<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
 <!-- 配置文件 -->
    <script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span>新闻详情</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="new_upadd.php">      
      <div class="form-group">
        <div class="label">
          <label>标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="title" value="" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>图片：</label>
        </div>
        <div class="field">
          <input type="file" id="url1" name="img"  class="input tips" style="width:25%; "  data-toggle="hover" data-image="" />
          <div class="tipss"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>类别：</label>
        </div>
        <div class="field"> 
           <input type="text" class="input w50" name="type" value="公司新闻"  />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>发布时间：</label>
        </div>
        <div class="field"> 
          <script src="js/laydate/laydate.js"></script>
          <input type="text" class="laydate-icon input w50" name="time" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value=""  data-validate="required:日期不能为空" style="padding:10px!important; height:auto!important;border:1px solid #ddd!important;" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>作者：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="writer" value=""  />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>点击次数：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="onclick" value="" data-validate="member:只能为数字"  />
          <div class="tips"></div>
        </div>
        </div>
      </div>
      <div class="form-group" style="margin-left:63px;">
        <div class="label">
          <label >内容：</label>
        </div>
        <div class="field">
         <textarea name="txt" class="input" style="width:600px;height:200px; border:1px solid #ddd;margin-left:45px;">
          </textarea>         
          <div class="tips"></div>
          </div>
          <br/>
          <h3 style="margin-left:45px;">请在下面的编辑器输入文本，然后转换为html代码复制放入上面的内容框中</h3>
        </div>
       <div class="form-group" style="margin-left:108px;">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
        <textarea name="txt" id="myEditor">
          </textarea>        
          <div class="tips"></div>
          </div>
        </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
<script type="text/javascript"> 
    var editor = new UE.ui.Editor(); 
   
    editor.render("myEditor"); 

    //1.2.4以后可以使用一下代码实例化编辑器 

    //UE.getEditor(’myEditor’) 

</script>
</body>
</html>